import { QueryMaterialRequest } from '@/api/premium/content/model/materialModel'
import { FormItemOption } from '@/components/Form/types'

export const queryMaterialFormItems: FormItemOption<QueryMaterialRequest>[] = [
  {
    formProps: {
      label: '素材ID',
      name: 'id',
    },
    inputOption: {
      tag: 'a-input',
      props: {
        placeholder: '输入素材ID',
      },
    },
  },
  {
    formProps: {
      label: '关键字',
      name: 'tag',
    },
    inputOption: {
      tag: 'a-input',
      props: {
        placeholder: '输入素材关键字',
      },
    },
  },
  {
    formProps: {
      label: '标题',
      name: 'title',
    },
    inputOption: {
      tag: 'a-input',
      props: {
        placeholder: '请输入标题',
      },
    },
  },
  {
    formProps: {
      label: '图集',
      name: 'atlas',
    },
    inputOption: {
      tag: 'a-input',
      props: {
        placeholder: '输入图集名称',
      },
    },
  },
  {
    formProps: {
      label: '分类',
      name: 'category',
    },
    inputOption: {
      tag: 'a-input',
      props: {
        placeholder: '输入分类名称',
      },
    },
  },
  {
    formProps: {
      label: '主类型',
      name: 'type',
    },
    inputOption: {
      tag: 'a-select',
      props: {
        placeholder: '选择素材类型',
      },
      children: [
        {
          tag: 'a-select-option',
          content: '全部',
          props: {
            value: -1,
          },
        },
        {
          tag: 'a-select-option',
          content: '图片',
          props: {
            value: 1,
          },
        },
        {
          tag: 'a-select-option',
          content: '视频',
          props: {
            value: 2,
          },
        },
        {
          tag: 'a-select-option',
          content: '音乐',
          props: {
            value: 3,
          },
        },
        {
          tag: 'a-select-option',
          content: '字体',
          props: {
            value: 4,
          },
        },
      ],
    },
  },
  {
    formProps: {
      label: '构图',
      name: 'structure',
    },
    inputOption: {
      tag: 'a-select',
      props: {
        placeholder: '请选择构图方式',
      },
      children: [
        {
          tag: 'a-select-option',
          content: '全部',
          props: {
            value: -1,
          },
        },
        {
          tag: 'a-select-option',
          content: '未知',
          props: {
            value: 0,
          },
        },
        {
          tag: 'a-select-option',
          content: '横图',
          props: {
            value: 1,
          },
        },
        {
          tag: 'a-select-option',
          content: '竖图',
          props: {
            value: 2,
          },
        },
        {
          tag: 'a-select-option',
          content: '方图',
          props: {
            value: 3,
          },
        },
        {
          tag: 'a-select-option',
          content: '全景图',
          props: {
            value: 4,
          },
        },
      ],
    },
  },
  {
    formProps: {
      label: '作者id',
      name: 'authorId',
    },
    inputOption: {
      tag: 'a-input',
      props: {
        placeholder: '请输入作者id',
      },
    },
  },
  {
    formProps: {
      label: '状态',
      name: 'status',
    },
    inputOption: {
      tag: 'a-select',
      props: {
        placeholder: '请选择状态',
      },
      children: [
        {
          tag: 'a-select-option',
          content: '全部',
          props: {
            value: -1,
          },
        },
        {
          tag: 'a-select-option',
          content: '正常',
          props: {
            value: 1,
          },
        },
        {
          tag: 'a-select-option',
          content: '已下架',
          props: {
            value: 2,
          },
        },
        {
          tag: 'a-select-option',
          content: '待审核',
          props: {
            value: 3,
          },
        },
        {
          tag: 'a-select-option',
          content: '驳回',
          props: {
            value: 4,
          },
        },
      ],
    },
  },
  {
    formProps: {
      label: '源ID',
      name: 'sourceId',
    },
    inputOption: {
      tag: 'a-input',
      props: {
        placeholder: '请输入原始ID',
      },
    },
  },
  {
    formProps: {
      label: '次类型',
      name: 'itype',
    },
    inputOption: {
      tag: 'a-select',
      props: {
        placeholder: '请选择二级类型',
      },
      children: [
        {
          tag: 'a-select-option',
          content: '全部',
          props: {
            value: -1,
          },
        },
        {
          tag: 'a-select-option',
          content: '摄影图',
          props: {
            value: 1,
          },
        },
        {
          tag: 'a-select-option',
          content: '免抠',
          props: {
            value: 2,
          },
        },
        {
          tag: 'a-select-option',
          content: '设计矢量图',
          props: {
            value: 3,
          },
        },
      ],
    },
  },
  {
    formProps: {
      label: '来源',
      name: 'source',
    },
    inputOption: {
      tag: 'a-select',
      props: {
        placeholder: '请选择素材来源',
      },
      children: [
        {
          tag: 'a-select-option',
          content: '全部',
          props: {
            value: -1,
          },
        },
        {
          tag: 'a-select-option',
          content: 'plus',
          props: {
            value: 1,
          },
        },
        {
          tag: 'a-select-option',
          content: 'dp',
          props: {
            value: 2,
          },
        },
        {
          tag: 'a-select-option',
          content: '优图',
          props: {
            value: 3,
          },
        },
        {
          tag: 'a-select-option',
          content: '开篇',
          props: {
            value: 4,
          },
        },
      ],
    },
  },
]
